<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="_style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="FunGL.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="GL" rel="Chapter" href="GL.html">
<link title="Glu" rel="Chapter" href="Glu.html">
<link title="Glut" rel="Chapter" href="Glut.html">
<link title="VertArray" rel="Chapter" href="VertArray.html">
<link title="VBO" rel="Chapter" href="VBO.html">
<link title="GLE" rel="Chapter" href="GLE.html">
<link title="Ftgl" rel="Chapter" href="Ftgl.html">
<link title="Jpeg_loader" rel="Chapter" href="Jpeg_loader.html">
<link title="Png_loader" rel="Chapter" href="Png_loader.html">
<link title="Svg_loader" rel="Chapter" href="Svg_loader.html">
<link title="Genimg_loader" rel="Chapter" href="Genimg_loader.html">
<link title="FunGL" rel="Chapter" href="FunGL.html">
<link title="FunGlut" rel="Chapter" href="FunGlut.html"><title>FunGlut</title>
</head>
<body>
<div class="navbar"><a href="FunGL.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;</div>
<center><h1>Module <a href="type_FunGlut.html">FunGlut</a></h1></center>
<br>
<pre><span class="keyword">module</span> FunGlut: <code class="code"><span class="keyword">sig</span></code> <a href="FunGlut.html">..</a> <code class="code"><span class="keyword">end</span></code></pre>An <i>experimental</i> attempt at a functional interface to Glut.<br>
<hr width="100%">
<pre><span id="VALfun_glut"><span class="keyword">val</span> <a href="code_VALFunGlut.fun_glut.html">fun_glut</a></span> : <code class="type">display:('a -> unit) -><br>       ?reshape:(width:int -> height:int -> unit) -><br>       ?keyboard:('a -> key:char -> x:int -> y:int -> 'a) -><br>       ?keyboard_up:('a -> key:char -> x:int -> y:int -> 'a) -><br>       ?special:('a -> key:<a href="Glut.html#TYPEspecial_key">Glut.special_key</a> -> x:int -> y:int -> 'a) -><br>       ?special_up:('a -> key:<a href="Glut.html#TYPEspecial_key">Glut.special_key</a> -> x:int -> y:int -> 'a) -><br>       ?mouse:('a -><br>               button:<a href="Glut.html#TYPEmouse_button">Glut.mouse_button</a> -><br>               state:<a href="Glut.html#TYPEmouse_button_state">Glut.mouse_button_state</a> -> x:int -> y:int -> 'a) -><br>       ?motion:('a -> x:int -> y:int -> 'a) -><br>       ?passive:('a -> x:int -> y:int -> 'a) -><br>       ?visibility:('a -> state:<a href="Glut.html#TYPEvisibility_state">Glut.visibility_state</a> -> 'a) -><br>       ?entry:('a -> state:<a href="Glut.html#TYPEentry_state">Glut.entry_state</a> -> 'a) -><br>       ?timer:(('a -> 'a) * int) list -><br>       ?idle:('a -> 'a) -><br>       ?full_screen:bool -><br>       ?window_size:int * int -><br>       ?title:string -><br>       ?display_mode:<a href="Glut.html#TYPEinit_mode">Glut.init_mode</a> list -><br>       ?init_gl:(unit -> unit) -> init:'a -> unit -> unit</code></pre><div class="info">
This function works like a <code class="code"><span class="constructor">List</span>.fold_left</code> which means that the application
    data is given as the parameter <code class="code">init</code> and then passed through each callback.
    A callback get the app data as first argument and then returns with this data,
    modified or not, which will be provided to the next callback in the same way.<br>
</div>
<pre><span id="VALpost_redisplay"><span class="keyword">val</span> <a href="code_VALFunGlut.post_redisplay.html">post_redisplay</a></span> : <code class="type">('a -> 'b) -> 'a -> 'b</code></pre></body></html>